import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { DemoComponent } from '../components/demo/demo.component';
import { AComponent } from '../components/a/a.component';
import { BComponent } from '../components/b/b.component';

const routes: Routes = [
  {
    path: 'a',
    component: AComponent
  },
  {
    path: 'b',
    component: BComponent
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class LazyChildRoutingModule { }
